package com.pctx.bibatracker.dao;

import com.pctx.bibatracker.pojo.Fence;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FenceMapper {
    int deleteByPrimaryKey(Long id);

    int deleteFence(@Param("deviceUuid") String deviceNo, @Param("fenceName") String fence_Name);

    int insert(Fence record);

    int insertSelective(Fence record);

    Fence selectByPrimaryKey(Long id);

    List<Fence> selectBydeviceUuid(@Param("deviceUuid") String deviceNo);

    int updateByPrimaryKeySelective(Fence record);

    int updateByPrimaryKey(Fence record);
}